import QtQuick 2.0
import QtQuick.Window 2.12
import "../components"
import "../program"

Window {

    title: "查看扩增程序"
    width: 1380*dp
    height: 660*dp

    maximumHeight: 720*dp
    minimumHeight: 720*dp
    maximumWidth: 1380*dp
    minimumWidth: 1380*dp

    modality: Qt.WindowModal
    flags: Qt.Window | Qt.WindowTitleHint |Qt.WindowSystemMenuHint | Qt.WindowCloseButtonHint

    function setEquId(equId){
//        gProgramInfo = CAmplProgram.getProgramInfo("1")[0]
//        gProgramStep = CAmplProgram.getProgramStepInfo(gProgramInfo["Id"], "1")
        gProgramInfo = CExpPro.getAmplInfo(equId)
        gProgramStep = CExpPro.getAmplStep(equId)
        programDetails.setProgramInfo(gProgramInfo)
        programDetails.setProgramStep(gProgramStep)
    }

    property var gProgramInfo: []
    property var gProgramStep: []


    ProgramDetails{
        id: programDetails
        anchors.fill: parent
        editable: 0
    }


}
